// component/pickerView.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    range: {
      type: Array,
      value: []
    },
    mode: {
      type: String,
      value: 'selector'
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    pickerValue: 0,
    column: 0,
    value: 0
  },

  /**
   * 组件的方法列表
   */
  methods: {
    pickerChange(event) {
      this.triggerEvent("confirm", event.detail.value)
    },
    pickerColumnChange(event) {
      this.triggerEvent("change", event.detail)
    }
  }
})
